package com.java1412.service;

import com.java1412.entity.User;
import com.java1412.utils.ResponseUtil;
import org.apache.ibatis.annotations.Param;

/**
 * @author java1412
 * @since 2023-06-20 16:43:26
 */
public interface UserService {

    public ResponseUtil findById(Integer id);

    // 登录
    public ResponseUtil findByUsername(User user);

    // 注册用户
    ResponseUtil register(User user, String uuid, String code);

    // 后台登录
    ResponseUtil adminFindByUsername(User user);

    // 查询用用户信息
    ResponseUtil find(Integer currentPage, Integer pageSize);
}
